<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/22
 * Time: 16:01
 */
namespace app\index\model;
use think\Model;

class Category extends Model{
    public static function yi()
    {
        $list=Category::where('parentid',0)->select();
        return $list;
    }

    public static function er()
    {
        $list=Category::select();
        return $list;
    }

}